import java.util.ArrayList;
import java.util.List;

/**
 * 2525. 根据规则将箱子分类
 */
public class No2522 {
    public String categorizeBox(int length, int width, int height, int mass) {
        List<String> descriptions = new ArrayList<>();
        if (length >= 1e4 || width >= 1e4 || height >= 1e4 || (long) length * width * height >= 1e9)
            descriptions.add("Bulky");
        if (mass >= 100) descriptions.add("Heavy");
        if (descriptions.isEmpty()) return "Neither";
        else if (descriptions.size() == 2) return "Both";
        else return descriptions.get(0);
    }
}
